package com.myeasyexcel.pojo.DTO;

import com.alibaba.excel.annotation.ExcelProperty;
import com.myeasyexcel.utils.ExcelErrMsg;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * excel 导入实体
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UserDto extends ExcelErrMsg implements Serializable {
    @ExcelProperty(value = "姓名", index = 0)
    private String name;
    @ExcelProperty(value = "年龄", index = 1)
    private Integer age;
    @ExcelProperty(value = "邮箱", index = 2)
    private String email;
    @ExcelProperty(value = "地址", index = 3)
    private String address;
}